const { defineConfig } = require('@vue/cli-service')

const JsonWebpackPlugin = require('./plugin/jsonWebpackPlugin.js')

module.exports = defineConfig({
  transpileDependencies: true,
    configureWebpack: {
    plugins: [
      new JsonWebpackPlugin({
        output: 'json-routes.json', // 输出文件名
        inputDir: 'src/assets/dist_data' // 输入文件夹路径
      })
    ]
  },
})
